import { createRouter, createWebHistory } from 'vue-router'

import layout from '@/layout/index.vue'

import tabbar from './tabbar'
const routes = [
  {
    path: '/',
    name: 'tabbar',
    redirect: tabbar[0].path,
    component: layout,
    children: tabbar,
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
